package com.yangzheandroid.rxmvp.view.activity.welcome;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.yangzheandroid.rxmvp.R;
import com.yangzheandroid.rxmvp.view.activity.MainActivity;

/**
 * 杨哲  版权所有(c)
 * Author：yangzhe
 * Time: 2017/6/14 16:39
 * <p>
 * 功能描述:
 */

public class SplashActivity extends AppCompatActivity {
    private Handler mHandler = new Handler() {
        @Override
        public void handleMessage(Message msg) {
            super.handleMessage(msg);
            startActivity(new Intent(SplashActivity.this, MainActivity.class));
            finish();
        }
    };

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        //跳转引导页
        mHandler.sendEmptyMessageDelayed(0, 1000);
    }


}
